@mixin marign {
    margin-top: 20px;
}

@mixin auto_height {
    height: auto;
}

@for $height from 1 to 2 {
    .title_#{1} {
        @extend %title;
        background: url("../img/seckill.png") no-repeat 0 0;
    }
    .title_#{2} {
        @extend %title;
        background-color: #edba21;
        background-image: linear-gradient(90deg, #edba21, #e19631);
    }
}

;
//公共样式部分 
%title {
    box-sizing: border-box;
    width: 1210px;
    $height: 55px;
    height: $height;
    line-height: $height;
    padding: 0 20px 0 30px;
}

%title_h3 {
    color: white;
    font-weight: normal !important;
    float: left;
    display: block;
}

%display_align {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
}

%WidthAndHeight {
    height: 420px;
}

//左边内容
//右边内容
//公共部分  左右结构一样,内容差不多,可以控制一样%
//公共动画效果,调用即可
%hover {
    transform: translateX(-10px);
    transition: all .2s;
}

//列表页的flex定位
%neiron-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

%Liebiao_color {
    font-size: 12px;
    color: #f10214;
}

%img_NoFirst {
    width: 196px;
    height: 260px;
}

%img_NoSecond {
    width: 100px;
    height: 100px;
}

%width {
    width: 580px;
}

%line {
    width: 500px;
    height: 1px;
    position: absolute;
    background-color: slategray;
}

#drink_inner {
    @extend %WidthAndHeight;
    padding: 10px;
}

%height {
    height: 400px;
}

//秒杀内容
#miaosha_neiron {
    $height: 225px;
    width: 100%;
    height: $height;
    background-color: white;
    padding: 12px 0 13px;
    overflow: hidden;
    @extend %postion;
    #bren,
    #prev {
        @extend %brenPostion;
        top: 80px;
    }
    #prev {
        left: 1182px;
    }
    ul {
        height: $height;
        $width: 100%; // background-color: salmon;
        display: flex;
        flex-direction: row;
        li {
            height: $height;
            width: $width / 6; // background-color: skyblue;
            border-left: 1px solid #e7e7e7;
            padding: 0 15px;
            @extend %display_align;
            img {
                $widthImg: 130px;
                width: $widthImg;
                height: $widthImg;
            }
        }
    }
}

//drink
#drink {
    h3 {
        @extend %title_h3;
        font-size: 22px;
    }
    #FourGgo {
        width: 382px;
        height: 260px;
        // background-color: slateblue;
        position: relative;
        overflow: hidden;
        span {
            @extend %line;
            background-color: #E6E6E6;
            top: 127px;
        }
        span[name="shu"] {
            transform: rotate(90deg);
            left: -66px;
        }
    }
}

#left,
#right {
    @extend %width;
    @extend %height;
    float: left;
    img {
        cursor: pointer;
        &:hover {
            @extend %hover;
        }
    }
}

#left {
    div {
        float: left;
    }
}

#right {
    border-left: 1px solid #E6E6E6;
}

#meizhuang {
    height: 478px;
    background-color: red;
}

.description {
    color: #999;
}

.money {
    s {
        font-size: 16px;
        font-weight: 600;
        color: #f1352b;
    }
    span {
        text-decoration: line-through;
        font-size: 12px;
        color: #999;
    }
}

#gouwu {
    background-color: #f2f2f2; // overflow: hidden
    #gowu_miaosha {
        .title_1 {
            font-size: 26px;
            h3 {
                @extend %title_h3;
                &:before {
                    content: "";
                    display: block;
                    float: left;
                    background-position-y: -48px !important;
                    width: 34px;
                    height: 36px;
                    margin-top: 10px;
                    margin-right: 10px;
                    background: url("../img/active.png");
                }
            }
            p {
                float: left;
                font-size: 14px;
                margin-top: 2px;
                margin-left: 14px;
                color: white;
                i {
                    font: normal normal normal 14px/1 FontAwesome;
                    &:after {
                        content: "\f105";
                    }
                }
            }
        }
    }
    #drink {
        background-color: white;
    }
    #like {
        background-color: indigo;
    }
    #gowu_miaosha,
    #drink,
    #meizhuang,
    #like {
        @include marign; // @include auto_height;
    }
}

// 时间样式
#timer {
    float: right;
    height: 100%;
    p {
        font-size: 14px;
        padding-top: 10px;
        line-height: 45px;
        margin-right: 5px;
        float: left;
    }
    section {
        float: left;
        span {
            background-color: #000;
            border: 1px solid #000;
            color: #f90013;
            padding: 5px;
            margin: 0 3px;
            border-radius: 4px;
            font-weight: 400;
        }
    }
}